package com.lone.demo.factorypattern.factory;

import com.lone.demo.factorypattern.buttons.Button;

public abstract class Dialog {
    public void renderWindow() {
        Button button = createButton();
        button.render();
    }

    protected abstract Button createButton();
}
